package com.chance.cc.crawler.development.command.script.allfield;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

/**
 * @author bx
 * @date 2020/12/25 0025 18:25
 */
public class AutoVMCommonField {

    private static final String domain = "static-filed-domain";

    private static final ScriptCommand scriptCommand = new ScriptCommand("192.168.1.217", 9599);

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }

    public static void publishCrawlerNodeScript(){
        HttpPage httpPage = scriptCommand.publishCrawlerScript2Consul(domain);

        System.out.println("发布采集任务脚本：" + httpPage.getRawText());
    }
}
